//
//  ViewController.m
//  加载数据失败提示view
//
//  Created by zxy on 2018/4/17.
//  Copyright © 2018年 zssh. All rights reserved.
//

#import "ViewController.h"
#import "MJRefresh.h"
#import "UIScrollView+Refresh.h"
@interface ViewController ()
@property (weak, nonatomic) IBOutlet UITableView *tabView;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.automaticallyAdjustsScrollViewInsets = NO;
    self.tabView.loadErrorType = YYLLoadErrorTypeRequest;
    /*是否显示头部刷新，默认为NO*/
//    self.tabView.isShowHeaderRefresh = YES;
    
    [self.tabView.refreshRequestErrorView.tipButton addTarget:self action:@selector(btnClick:) forControlEvents:UIControlEventTouchUpInside];

}

-(void)btnClick:(UIButton *)sender{
    NSLog(@"------");
    self.tabView.refreshRequestErrorView.hidden = YES;
}



@end
